package com.ruoyi.complex.mapper;

import java.util.List;
import com.ruoyi.complex.domain.ComplexDirectory;

/**
 * 综测目录Mapper接口
 * 
 * @author wky
 * @date 2024-04-25
 */
public interface ComplexDirectoryMapper {
    /**
     * 查询综测目录
     * 
     * @param directoryId 综测目录主键
     * @return 综测目录
     */
    public ComplexDirectory selectComplexDirectoryByDirectoryId(Long directoryId);

    /**
     * 查询综测目录列表
     * 
     * @param complexDirectory 综测目录
     * @return 综测目录集合
     */
    public List<ComplexDirectory> selectComplexDirectoryList(ComplexDirectory complexDirectory);

    /**
     * 新增综测目录
     * 
     * @param complexDirectory 综测目录
     * @return 结果
     */
    public int insertComplexDirectory(ComplexDirectory complexDirectory);

    /**
     * 修改综测目录
     * 
     * @param complexDirectory 综测目录
     * @return 结果
     */
    public int updateComplexDirectory(ComplexDirectory complexDirectory);

    /**
     * 删除综测目录
     * 
     * @param directoryId 综测目录主键
     * @return 结果
     */
    public int deleteComplexDirectoryByDirectoryId(Long directoryId);

    /**
     * 批量删除综测目录
     * 
     * @param directoryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteComplexDirectoryByDirectoryIds(Long[] directoryIds);

    public int updateByAncestorName(ComplexDirectory complexDirectory);

    public int deleteByAncestorName(String ancestorName);
}
